CXX = g++
CXXFLAGS = -std=c++17 -Wall -pthread

SERVER_SRC = \
    server/server_main.cpp \
    server/server_core.cpp \
    common/room_manager.cpp \
    common/user_manager.cpp \
    common/utils.cpp

CLIENT_SRC = client/client.cpp

INCLUDES = -Icommon

all: server_chat client_chat

server_chat: $(SERVER_SRC)
	$(CXX) $(CXXFLAGS) $(INCLUDES) -o server_chat $(SERVER_SRC)

client_chat: $(CLIENT_SRC)
	$(CXX) $(CXXFLAGS) $(INCLUDES) -o client_chat $(CLIENT_SRC)

clean:
	rm -f server_chat client_chat

